package do

import (
	"time"
)

type UserDO struct {
	Id        uint64    `json:"id" gorm:"primaryKey"`
	Name      string    `json:"name"`
	Age       uint8     `json:"age"`
	Address   string    `json:"address"`
	CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
	UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
	Deleted   uint64    `json:"deleted"`
}

func (UserDO) TableName() string {
	return "user"
}
